package com.wenson.creational.factoryabstract;

/**
 * @author: luowangcheng
 * @data：2024/6/10 18:44
 * @description:
 */
public class Tank extends MidClassUnit{
    public Tank(int x, int y) {
        super(x, y);
    }

    @Override
    public void show() {
        System.out.println("坦克出现的坐标：[" + x + "," + y + "]");
    }

    @Override
    public void attack() {
        System.out.println("坦克用炮轰，攻击力：" + attack);
    }
}
